package CH3.Demo;


public class PackageDemoTest  {

public

    static void  pint(int a){
        System.out.println("CH3.Demo2.PackageDemo a="+a);
    }

    public static void main(String[] args) {


        CH3.Demo.PackageDemo.pintFault(2);
        System.out.println("CH3.Demo.PackageDemo.aFault="+CH3.Demo.PackageDemo.aFault);

        CH3.Demo.PackageDemo.pintProtected(3);
        System.out.println("CH3.Demo.PackageDemo.aFault="+CH3.Demo.PackageDemo.aProtected);

        //CH3.Demo.PackageDemo.pintPrivate(4);
        //System.out.println("CH3.Demo.PackageDemo.aFault="+CH3.Demo.PackageDemo.aPrivate);

        PackageDemo.pintPublic(2);
        System.out.println("CH3.Demo.PackageDemo.aPublic="+ PackageDemo.aPublic);
        System.out.println("CH3.Demo.PackageDemo.bPublic="+ PackageDemo.bPublic);
    }
}
